package com.sunyard.pcc.core.manager;

import com.sunyard.michiru.common.entity.PageResult;
import com.sunyard.pcc.dal.model.SysRoleDO;
import com.sunyard.pcc.dal.query.SysRoleQuery;

import java.util.List;

/**
 * Manager for SysRole.
 */
public interface SysRoleManager {

    /**
     * query count by query condition.
     */
    int countByQuery(SysRoleQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(SysRoleQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(SysRoleDO record);

    /**
     * insert selective.
     */
    long insertSelective(SysRoleDO record);

    /**
     * select by query condition.
     */
    List<SysRoleDO> selectByQuery(SysRoleQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<SysRoleDO> selectByQueryWithPage(SysRoleQuery query);

    /**
     * select by primary key.
     */
    SysRoleDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( SysRoleDO record,  SysRoleQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(SysRoleDO record, SysRoleQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(SysRoleDO record);

}